package com.hy.ruiji.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hy.ruiji.common.R;
import com.hy.ruiji.enyity.Employee;

import javax.servlet.http.HttpServletRequest;

public interface EmployeeService extends IService<Employee> {
     /**
      * 员工登录
      * @param employee 传入用户名和密码
      * @return 返回登录结果信息
      */
     R<Employee> login(Employee employee);

     /**
      * 添加员工信息
      * @param request 获取session
      * @param employee 传入员工的消息
      * @return 返回查询结果
      */
     R<String> saveEmployee(HttpServletRequest request, Employee employee);
}
